/*
 * @Description:
 * @Author: william
 * @Date: 2025-04-17 10:44:57
 * @LastEditors: william
 * @LastEditTime: 2025-09-12 13:58:01
 */
const prefix = '/travelagency/routetype'
const prefix2 = '/travelagency/route'
const prefix3 = '/travelagency/team'
const prefix4 = '/travelagency/calculator'
const prefix5 = '/file'
const prefix6 = '/travelagency/route/resource'
const prefix7 = '/travelagency/team/cost'
const prefix8 = '/travelagency/team/seatOrder'
const prefix9 = '/travelagency/quote'
const prefix10 = '/travelagency/supplier'

// =====================  旅行社线路类别管理 =====================
// -------------------  修改线路类别 -------------------
export const apiRoutetypeUpdate = data => g_https.post(`${prefix}/update`, data)

// -------------------  查询线路类别分页列表 -------------------
export const apiRoutetypeList = data => g_https.post(`${prefix}/list`, data)

// -------------------  查询线路类别详情 -------------------
export const apiRoutetypeDetail = data => g_https.post(`${prefix}/detail`, data)

// -------------------  删除线路类别 -------------------
export const apiRoutetypeDelete = data => g_https.post(`${prefix}/delete`, data)

// -------------------  新增线路类别 -------------------
export const apiRoutetypeCreate = data => g_https.post(`${prefix}/create`, data)

// -------------------  查询线路类别树列表 -------------------
export const apiRoutetypeGetTreeList = data =>
  g_https.get(`${prefix}/getTreeList`, data)

// -------------------  查询线路类别下拉列表 -------------------
export const apiRoutetypeDropList = data =>
  g_https.get(`${prefix}/dropList`, data)

// =====================  旅行社线路管理 =====================
// -------------------  修改线路 -------------------
export const apiRouteUpdate = data => g_https.post(`${prefix2}/modify`, data)

// -------------------  查询线路行程列表 -------------------
export const apiRouteTripList = data =>
  g_https.post(`${prefix2}/tripList`, data)

// -------------------  查询线路分页列表 -------------------
export const apiRouteList = data => g_https.post(`${prefix2}/list`, data)

// -------------------  查询线路详情 -------------------
export const apiRouteDetail = data => g_https.post(`${prefix2}/detail`, data)

// -------------------  删除线路 -------------------
export const apiRouteDelete = data => g_https.post(`${prefix2}/delete`, data)

// -------------------  新增线路 -------------------
export const apiRouteCreate = data => g_https.post(`${prefix2}/add`, data)

// -------------------  查询线路下拉列表 -------------------
export const apiRouteDropList = data => g_https.get(`${prefix2}/dropList`, data)

// =====================  线路资料管理 =====================
// -------------------  修改线路资料 -------------------
export const apiRouteResourceUpdate = data =>
  g_https.post(`${prefix6}/update`, data)

// -------------------  查询线路资料 -------------------
export const apiRouteResourceQuery = data =>
  g_https.post(`${prefix6}/query`, data)

// -------------------  查询线路资料列表 -------------------
export const apiRouteResourceList = data =>
  g_https.post(`${prefix6}/list`, data)

// -------------------  删除线路资料 -------------------
export const apiRouteResourceDelete = data =>
  g_https.post(`${prefix6}/delete`, data)

// -------------------  新增线路资料 -------------------
export const apiRouteResourceCreate = data =>
  g_https.post(`${prefix6}/create`, data)

// -------------------  批量新增线路资料 -------------------
export const apiRouteResourceBatchCreate = data =>
  g_https.post(`${prefix6}/batchCreate`, data)

// =====================  文件管理 =====================
// -------------------  查询文件列表 -------------------
export const apiFileList = data => g_https.post(`${prefix5}/list`, data)

// -------------------  上传文件 -------------------
export const apiFileUpload = (data, headers) =>
  g_https.post(`${prefix5}/upload`, data, headers)

// -------------------  下载文件 -------------------
export const apiFileDownload = data => g_https.get(`${prefix5}/download`, data)

// -------------------  获取文件详细信息 -------------------
export const apiFileDetail = data => g_https.get(`${prefix5}/detail`, data)

// -------------------  删除文件 -------------------
export const apiFileDelete = data => g_https.post(`${prefix5}/delete`, data)

// =====================  旅行社团期管理 =====================
// -------------------  修改团期 -------------------
export const apiTeamUpdate = data => g_https.post(`${prefix3}/update`, data)

// -------------------  修改团期状态 -------------------
export const apiTeamUpdateStatus = data =>
  g_https.post(`${prefix3}/update`, data)

// -------------------  查询团期分页列表 -------------------
export const apiTeamList = data => g_https.post(`${prefix3}/list`, data)

// -------------------  查询团期详情 -------------------
export const apiTeamDetail = data => g_https.post(`${prefix3}/detail`, data)

// -------------------  删除团期 -------------------
export const apiTeamDelete = data => g_https.post(`${prefix3}/delete`, data)

// -------------------  新增团期 -------------------
export const apiTeamCreate = data => g_https.post(`${prefix3}/create`, data)

// -------------------  查询团期的线路资源 -------------------
export const apiTeamRouteResourceQuery = data =>
  g_https.post(`${prefix3}/routeResource/query`, data)

// -------------------  修改询价单 -------------------
export const apiTeamAskOrderUpdate = data =>
  g_https.post(`${prefix3}/askOrder/update`, data)

// -------------------  查询询价商户分页列表 -------------------
export const apiTeamMerchantList = data =>
  g_https.post(`${prefix3}/askOrder/merchantList`, data)

// -------------------  查询询价单分页列表 -------------------
export const apiTeamAskOrderList = data =>
  g_https.post(`${prefix3}/askOrder/list`, data)

// -------------------  删除询价单 -------------------
export const apiTeamAskOrderDelete = data =>
  g_https.post(`${prefix3}/askOrder/delete`, data)

// -------------------  创建询价单 -------------------
export const apiTeamAskOrderCreate = data =>
  g_https.post(`${prefix3}/askOrder/create`, data)

// =====================  团期成本管理 =====================
// -------------------  修改团期成本 -------------------
export const apiTeamCostUpdate = data => g_https.post(`${prefix7}/update`, data)

// -------------------  查询团期成本列表 -------------------
export const apiTeamCostList = data => g_https.post(`${prefix7}/list`, data)

// -------------------  删除团期成本 -------------------
export const apiTeamCostDelete = data => g_https.post(`${prefix7}/delete`, data)

// -------------------  新增团期成本 -------------------
export const apiTeamCostCreate = data => g_https.post(`${prefix7}/create`, data)

// =====================  团期占位订单管理 =====================
// -------------------  修改团期占位订单 -------------------
export const apiTeamSeatOrderUpdate = data =>
  g_https.post(`${prefix8}/update`, data)

// -------------------  查询团期占位订单列表 -------------------
export const apiTeamSeatOrderList = data =>
  g_https.post(`${prefix8}/list`, data)

// -------------------  删除团期占位订单 -------------------
export const apiTeamSeatOrderDelete = data =>
  g_https.post(`${prefix8}/delete`, data)

// -------------------  新增团期占位订单 -------------------
export const apiTeamSeatOrderCreate = data =>
  g_https.post(`${prefix8}/create`, data)

// =====================  成本计算器管理 =====================
// -------------------  修改成本计算器模板 -------------------
export const apiCalculatorUpdate = data =>
  g_https.post(`${prefix4}/update`, data)

// -------------------  查询成本计算器模板分页列表 -------------------
export const apiCalculatorList = data => g_https.post(`${prefix4}/list`, data)

// -------------------  查询成本计算器模板详情 -------------------
export const apiCalculatorDetail = data =>
  g_https.post(`${prefix4}/detail`, data)

// -------------------  删除成本计算器模板 -------------------
export const apiCalculatorDelete = data =>
  g_https.post(`${prefix4}/delete`, data)

// -------------------  新增成本计算器模板 -------------------
export const apiCalculatorCreate = data =>
  g_https.post(`${prefix4}/create`, data)


// 报价管理
// -------------------  报价列表 -------------------
export const apiQuoteList = data => g_https.post(`${prefix9}/list`, data)

// -------------------  报价详情 -------------------
export const apiQuoteDetail = data => g_https.post(`${prefix9}/detail?id=${data}`)

// -------------------  报价修改 -------------------    
export const apiQuoteUpdate = data => g_https.post(`${prefix9}/update`, data)

// -------------------  报价删除 -------------------    
export const apiQuoteDelete = data => g_https.post(`${prefix9}/delete?id=${data}`)

// -------------------  报价创建 -------------------  
export const apiQuoteCreate = data => g_https.post(`${prefix9}/create`, data)

// 获取成本模板下拉列表
export const apiCalculatorTemplateList = data => g_https.get(`${prefix4}/dropList`)

// 导入团期成本
export const apiTeamCostImports = data => g_https.post(`${prefix7}/imports?quoteId=${data}`)

// 供应商管理
// -------------------  供应商列表 -------------------
export const apiSupplierList = data => g_https.post(`${prefix10}/page`, data)

// -------------------  供应商创建 -------------------  
export const apiSupplierCreate = data => g_https.post(`${prefix10}/create`, data)


// -------------------  供应商修改 -------------------    
export const apiSupplierUpdate = data => g_https.post(`${prefix10}/update`, data)

// -------------------  供应商删除 -------------------    
export const apiSupplierDelete = data => g_https.post(`${prefix10}/delete`, data)

// -------------------  下拉列表 -------------------
export const apiSupplierDroplist = () => g_https.get(`${prefix10}/dropList`)

